package com.lz.sports.bean

import androidx.room.Embedded
import androidx.room.Relation

class DeviceGroupWithInfo {

    @Embedded
    var group: DeviceGroup? = null

    //检录的考生信息
    @Relation(
        parentColumn = "id",
        entityColumn = "groupId"
    )
    var deviceInfoList: List<DeviceInfo>? = null

    fun isInvalid(): Boolean = group == null || deviceInfoList == null
}